package cn.tutu.blockchain.machinestatus.entity;

import java.util.Date;

import org.hibernate.validator.constraints.NotBlank;

/**
 * 矿机状态
 * <p>
 * Title: MachineStatus
 * </p>
 * <p>
 * Description:
 * </p>
 * 
 * @author 眭善峰
 * @date 2018年6月14日
 *
 */
public class MachineStatus {

	private String id;
	@NotBlank(message = "矿机ID不能为空!")
	private String minemachineId;
	@NotBlank(message = "哈希值不能为空!")
	private String fileHash; // 需要备份的文件hash
	@NotBlank(message = "类型不能为空!")
	private String type; // 0：备份文件hash 1：根目录hash
	private String status; // 状态
	private Date createDatetime;
	private Date lastUpdateDatetime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMinemachineId() {
		return minemachineId;
	}

	public void setMinemachineId(String minemachineId) {
		this.minemachineId = minemachineId;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getCreateDatetime() {
		return createDatetime;
	}

	public void setCreateDatetime(Date createDatetime) {
		this.createDatetime = createDatetime;
	}

	public Date getLastUpdateDatetime() {
		return lastUpdateDatetime;
	}

	public void setLastUpdateDatetime(Date lastUpdateDatetime) {
		this.lastUpdateDatetime = lastUpdateDatetime;
	}

	public String getFileHash() {
		return fileHash;
	}

	public void setFileHash(String fileHash) {
		this.fileHash = fileHash;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

}
